package cn.com.duiba.millionaire.center.biz.remoteservice;

import cn.com.duiba.millionaire.center.api.remoteservice.RemoteAnswerResultService;
import cn.com.duiba.millionaire.center.biz.service.QuestionSelectionStastisticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * Created by zzy on 2018/1/20.
 */
@RestController
public class RemoteAnswerResultServiceImpl implements RemoteAnswerResultService {
    @Autowired
    private QuestionSelectionStastisticService questionSelectionStastisticService;

    @Override
    public Map<String, Long> queryAnswerResult(Long activityId, Integer questionIndex) {
        return questionSelectionStastisticService.findQuestionStastistic(activityId, questionIndex);
    }
}
